/**
 * Created by njz on 2017/9/25.
 */
import {
    modules
} from './data'
import store from '../store'
import {types} from '../store/module/viewKanban'
import request from '../request'
import config from '../../config'


export default {
    defaultKanban: function () {
        return request.get(`${config.apiRoot}v1/my/project`, {hasToken: true})
    },
    setViewKanban: function (modules) {
        store.dispatch(types.SET_MODULES, modules)
    }
}
